[campsite-support] list of articles which has the same topic
  • hi all

    i need to list all articles for the same author in article page, the author
    is a sub topic

    so how can i do that ,

    i need to get the article topic from article page in order i can use it in
    the list


    thanks



    --
    Alaa Anabtawi
  • 6 Comments sorted by
  • any ideas??

    i need to do some thing like that

    {{list_articles constraints="topic is "
    }}
    ......
    {{/list..}}

    hope this will clear my question

    best regards
    alaa



    ---------- Forwarded message ----------
    From: Alaa Anabtawi
    Date: Aug 1, 2008 7:43 PM
    Subject: list of articles which has the same topic
    To: campsite-support@campware.org


    hi all

    i need to list all articles for the same author in article page, the author
    is a sub topic

    so how can i do that ,

    i need to get the article topic from article page in order i can use it in
    the list


    thanks



    --
    Alaa Anabtawi


    --
    Alaa Anabtawi
  • Hi Alaa !

    You can do exactly what you need by:

    {{ set_topic name="Open Source:en" }}
    {{ list_articles length="14" order="bypublishdate desc" }}
    {{
    $campsite->article->name }}


    {{ /list_articles }}
    {{ /unset_topic }}


    replace "Open Source:en" with your corresponding topic:language names

    hope this helps!



    On Sat, Aug 2, 2008 at 11:07 AM, Alaa Anabtawi wrote:
    > any ideas??
    >
    > i need to do some thing like that
    >
    > {{list_articles constraints="topic is "
    > }}
    > ......
    > {{/list..}}
    >
    > hope this will clear my question
    >
    > best regards
    > alaa
    >
    >
    > ---------- Forwarded message ----------
    > From: Alaa Anabtawi
    > Date: Aug 1, 2008 7:43 PM
    > Subject: list of articles which has the same topic
    > To: campsite-support@campware.org
    >
    >
    > hi all
    >
    > i need to list all articles for the same author in article page, the author
    > is a sub topic
    >
    > so how can i do that ,
    >
    > i need to get the article topic from article page in order i can use it in
    > the list
    >
    >
    > thanks
    >
    >
    > --
    > Alaa Anabtawi
    >
    > --
    > Alaa Anabtawi



    --
    /holman
  • yes this what i need , but how i can get the topic directly from article
    page , becuse each article has different topic name

    is it possible?
    many thanks for help


    On 8/4/08, Holman Romero wrote:
    >
    > Hi Alaa !
    >
    > You can do exactly what you need by:
    >
    > {{ set_topic name="Open Source:en" }}
    > {{ list_articles length="14" order="bypublishdate desc" }}
    > {{
    > $campsite->article->name }}


    > {{ /list_articles }}
    > {{ /unset_topic }}
    >
    >
    > replace "Open Source:en" with your corresponding topic:language names
    >
    > hope this helps!
    >
    >
    >
    > On Sat, Aug 2, 2008 at 11:07 AM, Alaa Anabtawi wrote:
    > > any ideas??
    > >
    > > i need to do some thing like that
    > >
    > > {{list_articles constraints="topic is > topic>"
    > > }}
    > > ......
    > > {{/list..}}
    > >
    > > hope this will clear my question
    > >
    > > best regards
    > > alaa
    > >
    > >
    > > ---------- Forwarded message ----------
    > > From: Alaa Anabtawi
    > > Date: Aug 1, 2008 7:43 PM
    > > Subject: list of articles which has the same topic
    > > To: campsite-support@campware.org
    > >
    > >
    > > hi all
    > >
    > > i need to list all articles for the same author in article page, the
    > author
    > > is a sub topic
    > >
    > > so how can i do that ,
    > >
    > > i need to get the article topic from article page in order i can use it
    > in
    > > the list
    > >
    > >
    > > thanks
    > >
    > >
    > > --
    > > Alaa Anabtawi
    > >
    > > --
    > > Alaa Anabtawi
    >
    >
    >
    > --
    > /holman
    >



    --
    Alaa Anabtawi
  • It is not possible, by definition, because an article can be related
    to one or more topics. However, try something like this:

    {{ list_article_topics length="1" }}
    {{ list_articles length="5" order="bypublishdate desc" }}
    {{
    $campsite->article->name }}


    {{ /list_articles }}
    {{ /list_article_topics }}


    i am not sure if it does the trick but i think it should, so please
    try it and let us know.



    On Mon, Aug 4, 2008 at 8:54 AM, Alaa Anabtawi wrote:
    > yes this what i need , but how i can get the topic directly from article
    > page , becuse each article has different topic name
    >
    > is it possible?
    > many thanks for help
    >
    >
    > On 8/4/08, Holman Romero wrote:
    >>
    >> Hi Alaa !
    >>
    >> You can do exactly what you need by:
    >>
    >> {{ set_topic name="Open Source:en" }}
    >> {{ list_articles length="14" order="bypublishdate desc" }}
    >> {{
    >> $campsite->article->name }}


    >> {{ /list_articles }}
    >> {{ /unset_topic }}
    >>
    >>
    >> replace "Open Source:en" with your corresponding topic:language names
    >>
    >> hope this helps!
    >>
    >>
    >>
    >> On Sat, Aug 2, 2008 at 11:07 AM, Alaa Anabtawi wrote:
    >> > any ideas??
    >> >
    >> > i need to do some thing like that
    >> >
    >> > {{list_articles constraints="topic is >> > topic>"
    >> > }}
    >> > ......
    >> > {{/list..}}
    >> >
    >> > hope this will clear my question
    >> >
    >> > best regards
    >> > alaa
    >> >
    >> >
    >> > ---------- Forwarded message ----------
    >> > From: Alaa Anabtawi
    >> > Date: Aug 1, 2008 7:43 PM
    >> > Subject: list of articles which has the same topic
    >> > To: campsite-support@campware.org
    >> >
    >> >
    >> > hi all
    >> >
    >> > i need to list all articles for the same author in article page, the
    >> > author
    >> > is a sub topic
    >> >
    >> > so how can i do that ,
    >> >
    >> > i need to get the article topic from article page in order i can use it
    >> > in
    >> > the list
    >> >
    >> >
    >> > thanks
    >> >
    >> >
    >> > --
    >> > Alaa Anabtawi
    >> >
    >> > --
    >> > Alaa Anabtawi
    >>
    >>
    >>
    >> --
    >> /holman
    >
    >
    >
    > --
    > Alaa Anabtawi



    --
    /holman
  • this return's no results for me ,

    if you help me how can i print the topic name , may be i can do it.

    a simple question "is the topic feild the same of attach topic for any
    article?""

    thanks


    On 8/4/08, Holman Romero wrote:
    >
    > It is not possible, by definition, because an article can be related
    > to one or more topics. However, try something like this:
    >
    > {{ list_article_topics length="1" }}
    > {{ list_articles length="5" order="bypublishdate desc" }}
    > {{
    > $campsite->article->name }}


    > {{ /list_articles }}
    > {{ /list_article_topics }}
    >
    >
    > i am not sure if it does the trick but i think it should, so please
    > try it and let us know.
    >
    >
    >
    > On Mon, Aug 4, 2008 at 8:54 AM, Alaa Anabtawi wrote:
    > > yes this what i need , but how i can get the topic directly from article
    > > page , becuse each article has different topic name
    > >
    > > is it possible?
    > > many thanks for help
    > >
    > >
    > > On 8/4/08, Holman Romero wrote:
    > >>
    > >> Hi Alaa !
    > >>
    > >> You can do exactly what you need by:
    > >>
    > >> {{ set_topic name="Open Source:en" }}
    > >> {{ list_articles length="14" order="bypublishdate desc" }}
    > >> {{
    > >> $campsite->article->name }}


    > >> {{ /list_articles }}
    > >> {{ /unset_topic }}
    > >>
    > >>
    > >> replace "Open Source:en" with your corresponding topic:language names
    > >>
    > >> hope this helps!
    > >>
    > >>
    > >>
    > >> On Sat, Aug 2, 2008 at 11:07 AM, Alaa Anabtawi
    > wrote:
    > >> > any ideas??
    > >> >
    > >> > i need to do some thing like that
    > >> >
    > >> > {{list_articles constraints="topic is > >> > topic>"
    > >> > }}
    > >> > ......
    > >> > {{/list..}}
    > >> >
    > >> > hope this will clear my question
    > >> >
    > >> > best regards
    > >> > alaa
    > >> >
    > >> >
    > >> > ---------- Forwarded message ----------
    > >> > From: Alaa Anabtawi
    > >> > Date: Aug 1, 2008 7:43 PM
    > >> > Subject: list of articles which has the same topic
    > >> > To: campsite-support@campware.org
    > >> >
    > >> >
    > >> > hi all
    > >> >
    > >> > i need to list all articles for the same author in article page, the
    > >> > author
    > >> > is a sub topic
    > >> >
    > >> > so how can i do that ,
    > >> >
    > >> > i need to get the article topic from article page in order i can use
    > it
    > >> > in
    > >> > the list
    > >> >
    > >> >
    > >> > thanks
    > >> >
    > >> >
    > >> > --
    > >> > Alaa Anabtawi
    > >> >
    > >> > --
    > >> > Alaa Anabtawi
    > >>
    > >>
    > >>
    > >> --
    > >> /holman
    > >
    > >
    > >
    > > --
    > > Alaa Anabtawi
    >
    >
    >
    > --
    > /holman
    >



    --
    Alaa Anabtawi
  • Let's say you have this author field which is of type topic. The following
    code will list all articles that have the same author:

    {{ local }}
    {{ assign var="my_article" value=$campsite->article->number }}
    {{ assign var="author_name" value=$campsite->article->author->value }}
    {{ set_topic name="$author_name" }}
    {{ list_articles }}
    {{ if $my_article != $campsite->article->number }}
  • {{ $campsite->article->name }}


    {{ /if }}
    {{ /list_articles }}
    {{ /local }}

    Hope this helps,
    Mugur

    On Fri, Aug 1, 2008 at 8:43 PM, Alaa Anabtawi wrote:

    > hi all
    >
    > i need to list all articles for the same author in article page, the author
    > is a sub topic
    >
    > so how can i do that ,
    >
    > i need to get the article topic from article page in order i can use it in
    > the list
    >
    >
    > thanks
    >
    >
    >
    > --
    > Alaa Anabtawi
    >
Add a Comment
Start a New Discussion

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Poll

No poll attached to this discussion.

Top Posters